﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  
  <CustomAction Id="Practices.AppActions"   
                Location="CommandUI.Ribbon"
                RegistrationId="330"
                RegistrationType="List"
                Rights="AddListItems, EditListItems, DeleteListItems">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.AppActions.Controls._children">
          <Button Id="Ribbon.Documents.AppActions.Create"
                  Command="Apps.Actions.Create"
                  LabelText="$Resources:core,cui_ButNewDocument;"
                  Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-79" Image16by16Left="-1"
                  Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-35" Image32by32Left="-69"
                  ToolTipTitle="$Resources:core,cui_ButNewDocument;"
                  ToolTipDescription="$Resources:core,cui_STT_ButNewDocument;"
                  TemplateAlias="o1"/>
        </CommandUIDefinition>
        <CommandUIDefinition Location="Ribbon.Documents.AppActions.Controls._children">
          <Button Id="Ribbon.Documents.AppActions.Upgrade"
                  Command="Apps.Actions.Upgrade"
                  LabelText="$Resources:core,cui_ButEditDocument;"
                  Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-163" Image16by16Left="-145"
                  Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-239" Image32by32Left="-273"
                  ToolTipTitle="$Resources:core,cui_ButEditDocument;"
                  ToolTipDescription="$Resources:core,cui_STT_ButEditDocument;"
                  TemplateAlias="o1"/>
        </CommandUIDefinition>
        <CommandUIDefinition Location="Ribbon.Documents.Manage.Delete">
          <Button Id="Ribbon.Documents.AppActions.Delete"
                  Command="Apps.Actions.Delete"
                  LabelText="$Resources:core,cui_ButDeleteDocument;"
                  Image16by16="/_layouts/15/$Resources:core,Language;/images/formatmap16x16.png?rev=23" Image16by16Top="-271" Image16by16Left="-271"
                  Image32by32="/_layouts/15/$Resources:core,Language;/images/formatmap32x32.png?rev=23" Image32by32Top="-69" Image32by32Left="-511"
                  ToolTipTitle="$Resources:core,cui_ButDeleteDocument;"
                  ToolTipDescription="$Resources:core,cui_STT_ButDeleteDocument;"
                  TemplateAlias="o2" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
    </CommandUIExtension>
  </CustomAction>
  
  <CustomAction Id="jQuery"
          ScriptSrc="/_layouts/15/Scripts/jquery-2.1.1.min.js"
          Location="ScriptLink"
          Sequence="1000" />
  <CustomAction Id="Apps.Ribbon.Loader"
                ScriptSrc="/_layouts/15/Scripts/Apps.Ribbon.Loader.js"
                Location="ScriptLink"
                Sequence="1001" />
</Elements>